package date1128.nestedBean;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.lu.jdog.util.Resource;

public class NestedBeanTest {
	private static ApplicationContext applicationContext;

	public static void main(String[] args) {
		String xml = Resource.getAssertPath(NestedBeanTest.class, "beans.xml");
		applicationContext = new ClassPathXmlApplicationContext(xml);

		Ball ball = (Ball) applicationContext.getBean("ball");
		ball.play();
	}
}
